package eventmanager.frontend;

import javax.swing.JFrame;
import javax.swing.JPanel;

import eventmanager.backend.event.EventList;

public class TestGUI extends EventList{
	
	@SuppressWarnings("unused")
	private JPanel startPanel;
	//private JButton eventButton;
	//private EventManager em;
	
	public TestGUI(JPanel panel){
		JFrame frame = new JFrame();
		startPanel = new JPanel();
		//new EventList();
		//em = new EventManager();
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setTitle("Event");
		frame.setSize(300, 200);
		frame.setLocationRelativeTo(null);
		/*
		startPanel.setBackground(Color.WHITE);
		eventButton = new JButton("Make Event");
		eventButton.addActionListener(new ActionListener(){

			public void actionPerformed(ActionEvent e) {
				System.out.println("button pushed");
				new TestGUIEventDetails();
			}
			
		});
		
		JButton iterateButton = new JButton("Iterate through Array");
		iterateButton.addActionListener(new ActionListener(){
			
			public void actionPerformed(ActionEvent e) {
				System.out.println("Iterating...");
				em.goThroughArray(eventList);
			}
		});
		
		*/
		panel.setLayout(null);
		//eventButton.setBounds(90, 70, 100, 20);
		//iterateButton.setBounds(60, 100, 155, 20);
		//startPanel.add(eventButton);
		//startPanel.add(iterateButton);
		
		
		frame.add(panel);
		frame.setVisible(true);
		System.out.println("made frame");
		System.out.println("making panel...");
	}
}
